<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http:dream/cust_tag.tld" prefix="cust"%>
<%
	request.setAttribute("path", request.getContextPath());
%> 

<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">家电维修管理系统</a></h1>
</div>
<!--close-Header-part--> 

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
  	 <li id="h01" class="active">
  	 	<a href="${root}/view/page?loc=portal&h=h01&n=n01"><i class="icon  icon-home"></i> <span class="text">首页</span></a>
  	 </li>
  	 
  	<cust:when authority="user_list">
  	<li id="h02">
  		<a href="${root}/view/page?loc=user_list&h=h02&n=n01"><i class="icon icon-check"></i> <span class="text">管理员操作</span></a>
  	</li>
  	</cust:when>
  	
  	<cust:when authority="mst_enter">
	<li id="h03">
		<a href="${root}/view/page?loc=pro_cat_overview&h=h03&n=n01"><i class="icon icon-wrench"></i> <span class="text">主数据管理</span></a>
	</li>
	</cust:when>
	
	<cust:when authority="stock_list">
    <li id="h04">
    	<a href="${root}/stock/list/init?loc=stock_list&h=h04&n=n02"><i class="icon icon-certificate"></i> <span class="text">库存管理</span></a>
    </li> 
    </cust:when>
    
    <cust:when authority="order_list">
    <li id="h05">
    	<a href="${root}/order/list/init?loc=order_list&h=h05&n=n01"><i class="icon icon-th-list"></i> <span class="text">订单管理</span></a>
    </li>     
  	</cust:when>
  	
  	<li id="h98">
  		<a href="${root}/app/user/setting/${userMe.id}?h=h98&n=n04"><i class="icon icon-star"></i> <span class="text">个人设定</span></a>
  	</li>
     <li id="h99">
  		<a href="${root}/app/user/logout?h=h99&s=subh01"><i class="icon icon-share-alt"></i> <span class="text">登出</span></a>
  	</li>
  </ul>
</div>

<!--start-top-serch-->
<div id="search">
	<c:choose>
			<c:when test="${userMe.image != null}">
				<img src="${userMe.image.thumbImgFullPath}" style="width: 28px;height:28px"  alt="" class="img-thumbnail" />
			</c:when>
			<c:otherwise>
				<img src="${path }/portal/css/images/def_img.jpg" style="width: 28px;height: 28px" alt="" class="img-thumbnail" />
			</c:otherwise>
	</c:choose> 
</div>
<!--close-top-serch--> 

